/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package server;

/**
 *
 * @author Andi
 */
public class InfoFile {
    private String fileName;
    private String path;
    private long dateModified;

    // constructor
    public InfoFile(String filename, String path, long datemodified){
        this.fileName = filename;
        this.path = path;
        this.dateModified = datemodified;
    }

    // getter & setter
    /**
     * @return the fileName
     */
    public String getFileName() {
        return fileName;
    }

    /**
     * @param fileName the fileName to set
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /**
     * @return the path
     */
    public String getPath() {
        return path;
    }

    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * @return the dateModified
     */
    public long getDateModified() {
        return dateModified;
    }

    /**
     * @param dateModified the dateModified to set
     */
    public void setDateModified(long dateModified) {
        this.dateModified = dateModified;
    }

    public String convertToMessageInfoFile(){
        String result = fileName + "|" + dateModified + "\n";
        return result;
    }
    
}
